/* ====================================================== 
   <!-- Mobile Menu --> 
/* ====================================================== */
@import '@poemkit/components/_utils/styles/_variable-and-mixin.scss';

/* Mobile Menu Toggle */
.poemkit-menu-mobile__toggle {
    @include transition-default();
    position: absolute;
    display: none;
    width: 40px;
    height: 40px;
    top: 15px;
    right: 20px;
    z-index: 90002;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    border-radius: 100%;
    transition: .1s ease-in-out;
	
}
.poemkit-menu-mobile__mask {
	content: '';
	left: 0;
	top: 0;
	position: fixed;
	z-index: 90001;
	display: block;
	background: rgba(0,0,0,0);
	width: 100%;
	height: 100%;
	display: none;
}

.js-poemkit-menu-opened .poemkit-menu-mobile__mask {
	background: rgba(0,0,0,.7);
	display: block;
}


/* Show Toolbar when viewing site with WordPress */
.admin-bar .poemkit-menu-mobile__toggle {
    //top: 66px; // 66px (If it's the outermost)
	top: 0;
	
    &.is-fixed {
        top: 20px;
    }
}

/* Admin bar becomes taller on smaller devices with WordPress */
@media all and (max-width: 782px) {
    .admin-bar .poemkit-menu-mobile__toggle.is-fixed {
		//top: 66px; // 66px (If it's the outermost)
		top: 0;
    }
}

@media all and (max-width: 600px) {
    .admin-bar .poemkit-menu-mobile__toggle.is-fixed {
        top: 20px;
    }
}

@media all and (max-width: 768px) {
    .poemkit-menu-mobile__toggle {
        display: block;
    }
}

.poemkit-menu-mobile__toggle {
    span {
        display: block;
        position: absolute;
        top: 14px;
        left: 12px;
        width: 20px;
        height: 2px;
        background: #525252;
        @include transition-default();
    }

    span {
      
        @for $i from 1 to 3 {

            &:nth-child(#{$i+1}) {
                top: #{14+($i*5)}px;
            }
        }	  

    }
  	
}

body.js-poemkit-menu-opened {
	.poemkit-menu-mobile__toggle {
		span {
			left: 16px;
			
			&:first-child {
				transform: rotate(45deg) translate(0, 7px);
			}
			&:nth-child(2) {
				opacity: 0;
			}
			&:nth-child(3) {
				transform: rotate(-45deg) translate(0, -7px);
			}	  
			
		} 
	}
}


/* Mobile Menu Container */

.poemkit-menu__container.is-mobile {
	
    @include transition-default();
    left: -300px;
    display: block;
    position: fixed;
    top: 0;
    height: 100%;
    z-index: 999999;
    width: 260px;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: $font-mobile-stack;
    font-size: 15px;
    background: #f8f8f8;
    color: $primary-text-color;
    box-shadow: 0px 0px 37px 0px rgba(0, 0, 0, 0.1);

	
	
    > .poemkit-menu__inner {
        padding: 0 0 15px;
        > p {
            margin-left: 15px;
            margin-right: 15px;
        }
	  
	    > .poemkit-menu__right-box {
		    padding-left: .5rem;
			
		
		    a {
			    display: inline-block;
			    font-size: 1rem;
			    margin-right: .3rem;
		    }
			
			/* Social button for white color */
			.poemkit-social-btn--white {
				border-color: $primary-text-color;
				color: $primary-text-color;

				&:hover {

					i {
						color: $primary-text-color;
					}

					&::after {
						background-color: #fff;
					}		

				}		
			}
	    }
  
    }
	

    h1, h2, h3, h4, h5, h6 {
        background-image: url('');
        background-size: 100%;
        background-image: linear-gradient(#ffffff, #dfdfdf);
        font-size: 11px;
        font-weight: normal;
        padding: 0 15px;
        margin: 0 0 5px;
        color: $primary-text-color;
        line-height: 24px;
        box-shadow: 0 5px 5px 3px rgba(0, 0, 0, 0.2);
    }
    p {
        font-size: 13px;
        margin: 0 0 12px;
        a {
            color: rgba(51, 51, 51, 0.9);
        }
    }
	
    > p {
        margin-left: 15px;
        margin-right: 15px;
    }
	
    ul {
        display: block;
        margin: 0 0 15px;
        padding: 0;
        border-top: 1px solid #dfdfdf;
        border-bottom: none;
		
        li {
			
            display: block;
            margin: 0;
            line-height: 48px;
            border-top: none;
            border-bottom: 1px solid #dfdfdf;
            position: relative;

			
            a, 
			span {
                padding: 0 15px;
                display: block;
                text-decoration: none;
                color: $primary-text-color;
            }
			
            a:hover {
				color: #000;
            }
			
            &.is-active > {
                a, 
				span {
                    box-shadow: 0 0 15px 3px #ebebeb inset;
                }
            }

			
			
            ul {
                border-bottom: 0;
                margin: 0;
				
                li {
                    line-height: 40px;
                    font-size: 13px;
					
                    &:last-child {
                        border-bottom: 0;
                    }
					
					a:hover {
						color: #000;
					}
					
                    &.is-active > {
                        a, 
						span {
                            box-shadow: 0 0 15px 3px #ebebeb inset;
                        }
                    }
					
                    a, 
					span {
                        color: rgba(51, 51, 51, 0.8);
                    }
					

					
					
                }

            }	

        }
    }
	

    li > .sub-menu {
		margin-top: 0 !important;
    	overflow: hidden;
		height: 0;
		
    	ul {
        	height: auto;
    	}
  	}
	

	/* Mega & Dropdown */
	li.multi-column {
		
		ul {
			border: none;
		}
		
		> ul .multi-column-title {
			font-weight: bold;
			color: #ABABAB;
		}
		
		
	}


	li:not(.multi-column) {

		ul ul {
			padding-left: 0.721875rem;
		}
	} 

	.poemkit-menu__arrow-mobile {
	    position: absolute;
	    top: 0;
	    right: 10px;
	    font-style: normal;
	    font-weight: 100;
	    font-family: serif;
	    color: #ABABAB;
		
		&::after {
			content: '+';
			display: inline-block;
			font-size: 1rem;
		}
		

	}

	li.is-active .poemkit-menu__arrow-mobile::after {
		content: '-';
	}

	
	
	/* Form Elements */
	form {
		margin: 0 15px;
    }
	label {
		font-size: 13px;
	}
	
	input:not([type="checkbox"]):not([type="radio"]) {
		  width: 100%;
		  font-size: 13px;
		  padding: 5px;
		  box-sizing: border-box;
		  margin: 0 0 10px;
		  border-radius: 2px;
		  border: 0;
		  background: rgba(0, 0, 0, 0.1);
		  color: rgba(51, 51, 51, 0.6);
		  display: block;
		  clear: both;
		
	  }
	
	  textarea, 
	  select {
		  width: 100%;
		  font-size: 13px;
		  padding: 5px;
		  box-sizing: border-box;
		  margin: 0 0 10px;
		  border-radius: 2px;
		  border: 0;
		  background: rgba(0, 0, 0, 0.1);
		  color: rgba(51, 51, 51, 0.6);
		  display: block;
		  clear: both;
	  }
	
	  input {
		  &[type="checkbox"] {
		      width: auto;
		      display: inline;
		      clear: none;
		  }
		  
		  &[type="button"], 
	      &[type="submit"] {
		      color: #f8f8f8;
		      background: $primary-text-color;
		  }
		  &[type="button"]:hover, 
		  &[type="submit"]:hover {
		      background: rgba(51, 51, 51, 0.9);
		  }
	  }

}

.js-poemkit-menu-opened .poemkit-menu__container.is-mobile {
	left: 0;
}
